package com.isky.visual.proj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 项目分组表
 * </p>
 *
 * @author wudl
 * @since 2020-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ProjectgroupT对象", description="项目分组表")
@TableName("panel_group_t")
public class PanelGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "用户id")
//    private Long userId;
    @ApiModelProperty(value = "用户组上级id")
    private Long parentId;

    @ApiModelProperty(value = "用户组id")
    private Long groupId;

    @ApiModelProperty(value = "组名称")
    private String groupName;

    //组类型 0 所有人公有  挂在上面的仪表盘需要根据用户组或者用户来区分权限
    @ApiModelProperty(value = "组类型 0 所有人公有，1 个人公共 2 个人")
    private Integer groupType;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    private Boolean valid;


}
